body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

#app {
    display: flex;
    height: 100%;
}

#sidebar {
    width: 200px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

#compose-btn, #settings-btn {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
}

#compose-btn:hover, #settings-btn:hover {
    background-color: #45a049;
}

#settings-btn {
    margin-top: auto;
}

#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#email-list {
    height: 50%;
    overflow-y: auto;
}

#email-preview {
    height: 50%;
    border-top: 1px solid #ccc;
}

#compose-form {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#compose-form input,
#compose-form textarea {
    margin-bottom: 10px;
    padding: 5px;
}

#compose-form textarea {
    height: 200px;
}

#send-btn {
    align-self: flex-end;
    padding: 5px 10px;
}

#folder-list li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#folder-list li:hover {
    background-color: #e0e0e0;
}

#search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.email-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.email-item:hover {
    background-color: #f9f9f9;
}

.email-sender, .email-subject, .email-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-sender {
    width: 30%;
}

.email-subject {
    width: 50%;
}

.email-date {
    width: 20%;
    text-align: right;
}